package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.google.common.collect.Maps;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Map;
@Getter
@AllArgsConstructor
public enum SaasTaskConfigurationEnum {
    // 配置状态 1:未配置奖励  2:未提交审核 3:审核中 4:撤销审核 5: 审核未通过 6: 审核通过
    NOT_CONFIGURED(1, "未配置奖励"),
    NOT_SUBMITTED_FOR_REVIEW(2, "未提交审核"),
    UNDER_REVIEW(3, "审核中"),
    REVOCATION_OF_REVIEW(4, "撤销审核"),
    REVIEW_FAILED(5, "审核未通过"),
    APPROVED(6, "审核通过"),
    ;


    @EnumValue

    private int code;

    private String desc;

    public static Map<String, String> getAll() {
        Map<String, String> map = Maps.newLinkedHashMap();
        for (SaasTaskConfigurationEnum value : SaasTaskConfigurationEnum.values()) {
            map.put(value.name(), value.getDesc());
        }
        return map;
    }
}
